#pragma once

class EnemyMgr
{
private:
	EnemyMgr();
	~EnemyMgr();

	static int num;

	std::vector<EnemyTank *> enemies;
	static const int MAX = 4;
	bool move = true;
	double time = 0;
	double stoptime = 0;

public:
	static EnemyMgr * getInstance();
	static int getNum();

	//void create(const std::wstring & name, double x, double y, int v, int life, const std::wstring & bname, const tagBullet & bullet);
	void create(const tagEnemy & enemy, double x, double y);
	EnemyTank * collide(Point pt);
	EnemyTank * collide(Rect rc);

	void update(double dtime);
	void draw(Graphics * graphics);
	void clear();
	void stop(double time);
};